package com.hzsoft.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hzsoft.sys.entity.SysUserRole;
import com.hzsoft.sys.mapper.SysUserRoleMapper;
import com.hzsoft.sys.service.SysUserRoleService;
@Transactional
@Service("sysUserRoleService")
public class SysUserRoleServiceImpl implements SysUserRoleService{
	
	private SysUserRoleMapper sysUserRoleMapper;
	
	public SysUserRoleMapper getSysUserRoleMapper() {
		return sysUserRoleMapper;
	}
	@Autowired
	public void setSysUserRoleMapper(SysUserRoleMapper sysUserRoleMapper) {
		this.sysUserRoleMapper = sysUserRoleMapper;
	}

	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return sysUserRoleMapper.deleteByPrimaryKey(id);
	}

	public int insert(SysUserRole record) {
		// TODO Auto-generated method stub
		return sysUserRoleMapper.insert(record);
	}

	public int insertSelective(SysUserRole record) {
		// TODO Auto-generated method stub
		return sysUserRoleMapper.insertSelective(record);
	}

	public SysUserRole selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return sysUserRoleMapper.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(SysUserRole record) {
		// TODO Auto-generated method stub
		return sysUserRoleMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(SysUserRole record) {
		// TODO Auto-generated method stub
		return sysUserRoleMapper.updateByPrimaryKey(record);
	}
	public List<SysUserRole> selectByUserId(String userId) {
		// TODO Auto-generated method stub
		return sysUserRoleMapper.selectByUserId(userId);
	}
	public int deleteByUserId(String userId) {
		// TODO Auto-generated method stub
		return sysUserRoleMapper.deleteByUserId(userId);
	}

}
